package com.usian.skill.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.usian.skill.mapper.GoodsMapper;
import com.usian.skill.pojo.Goods;
import com.usian.skill.service.GoodsService;
import com.usian.skill.vo.GoodsDetailVo;
import com.usian.skill.vo.GoodsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements GoodsService {

    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public List<GoodsVo> FindGoodsList() {
        return goodsMapper.findAll();
    }

    @Override
    public GoodsVo GoodsDetail(int i) {
        return goodsMapper.FindGoodsDetail(i);
    }
}
